/*package com.htjc.integral.conversion.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;
*//**
 * memcache分布式缓存
 * 优点：不仅可以缓存文件，还可以缓存图片等
 * 缺点：数据不能持久化，容易丢数据，建议使用redis
 * @author zhangjiajia
 *
 *//*
@Configuration
public class MemcacheConfiguration {
		@Value("${spring.memcache.servers}")
	    private String[] servers;
	    @Value("${spring.memcache.failover}")
	    private boolean failover;
	    @Value("${spring.memcache.initConn}")
	    private int initConn;
	    @Value("${spring.memcache.minConn}")
	    private int minConn;
	    @Value("${spring.memcache.maxConn}")
	    private int maxConn;
	    @Value("${spring.memcache.maintSleep}")
	    private int maintSleep;
	    @Value("${spring.memcache.nagel}")
	    private boolean nagel;
	    @Value("${spring.memcache.socketTO}")
	    private int socketTO;
	    @Value("${spring.memcache.aliveCheck}")
	    private boolean aliveCheck;

	    @Bean
	    public SockIOPool sockIOPool () {
	        SockIOPool pool = SockIOPool.getInstance();
	        pool.setServers(servers);
	        pool.setFailover(failover);
	        pool.setInitConn(initConn);
	        pool.setMinConn(minConn);
	        pool.setMaxConn(maxConn);
	        pool.setMaintSleep(maintSleep);
	        pool.setNagle(nagel);
	        pool.setSocketTO(socketTO);
	        pool.setAliveCheck(aliveCheck);
	        pool.initialize();
	        return pool;
	    }


	    @Bean
	    public MemCachedClient memCachedClient(){
	        return new MemCachedClient();
	    }
	 
}
*/